<%--
  Created by IntelliJ IDEA.
  User: Cool
  Date: 2023/10/10
  Time: 19:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>九九乘法表</title>
</head>
<body>
    <table>
    <%--用格子的形式进行布局--%>
        <%
            for (int i = 1; i <= 9; i++) {
                //打印行
                out.println("<tr>");
                for (int j = 1; j <= 9; j++) {
                    //打印列
                    out.println("<td>" + i + " × " + j + " = " + (i * j)+ " &nbsp;&nbsp;  "+ "</td>");
                    //打印列标签并用td换格子
                }
                out.println("</tr>");
            }
        %>
    </table>
</body>
</html>
